import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import type { App, Component } from "vue";
import SvgIcon from "@/components/SvgIcon/SvgIcon.vue";
import Image from "@/components/Image/Image.vue";
import TabNav from "@/components/TabNav/TabNav.vue";
const components: { [name: string]: Component } = {
  SvgIcon,
  Image,
  TabNav
};

export default {
  install(app: App): void {
    Object.keys(components).forEach((key: string) => {
      app.component(key, components[key]);
    });
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component);
    }
  },
};
